<!DOCTYPE html>
<html style="width: 100%;height: 100%;">
    <head>
          <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
          <title>
            用户详情页
          </title>

    </head>
        <body style="width: 100%;height: 100%; margin-top: 0px">
            <script>
                  window.onload=function(){
                      //alert("afljkkljsfak");
                    var stuffno=document.getElementById("stuffno");
                    var stuffname=document.getElementById("stuffname");
                    var stuffphone=document.getElementById("stuffphone");
                    var stuffdetail=document.getElementById("stuffdetail");
                    var department=document.getElementById("department");
                    var station=document.getElementById("station");
                    var responseText=sessionStorage.getItem("stuff");
                    window.eval("var stuff="+responseText);//js可以将字符串转换成js代码
                     //alert(responseText);
                    stuffno.innerText=stuff.staffno;
                    stuffname.innerText=stuff.staffname;
                    stuffphone.innerText=stuff.phone;
                    stuffdetail.innerText=stuff.detail;
                    department.innerText=stuff.departmentno;
                    station.innerText=stuff.stationno;
                  }

            </script>
        <div style="width: 40%; margin-left: 30%;height: 100%;border-width: 1px; border-style: solid;border-color:gray;">
              <table style="margin-top: 5%;margin-left: 0%;width: 100%;height: 80%">
                    <tr>
                      <th>员工账号:</th>
                      <th id="stuffno"> </th>

                    </tr>
                    <tr>
                      <th>员工姓名:</th>
                      <th id="stuffname"> </th>

                    </tr>
                    <tr>
                      <th>员工手机号:</th>
                      <th id="stuffphone"> </th>

                    </tr>
                    <tr>
                      <th>员工详细信息:</th>
                      <th id="stuffdetail"> </th>

                    </tr>
                    <tr>
                      <th>员工所属部门:</th>
                      <th id="department"> </th>

                    </tr>
                    <tr>
                      <th>员工职位:</th>
                      <th id="station"> </th>

                    </tr>
              </table>
          </div>
    </body>
</html>